<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
    <meta charset="UTF-8">
    <title>内置指令:v-text 数据影响界面文本</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../vue.js"></script>
</head>
<body>
<h2>【例11】内置指令:v-text 数据影响界面文本</h2>
<hr>
<div id="app">
    <p v-text="msg"></p>
</div>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            msg: '我是v-text的初值'
        }
    })
</script>
<hr>
<p><a href="index.html">返回章节目录</a>
    <script>document.write(document.lastModified); </script>
</p>
</body>
</html>
